package 进阶.IO.属性集;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class demo02 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("d:/a.txt");
        Properties p = new Properties();

        p.setProperty("jack","19");
        p.setProperty("rose","90");
        p.setProperty("peter","100");

        p.store(fw,"save");
        fw.close();

    }
}
